package clueless.utilities;

public class Logger {

	private final String m_className;

	public Logger(String className) {
		m_className = className;
	}

	private void print(String prefix, String message) {

		if (message == null) message = "";

		System.out.println("[" + prefix + " " + m_className + "] " + message);
		System.out.flush();

	}

	protected void logPrint(String message) {
		print("Logging", message);
	}

	protected void warnPrint(String message) {
		print("Warning", message);
	}

	protected void errorPrint(String message) {
		print("Error", message);
	}

}
